package capsules;

import java.io.Serializable;

public class CapsuleSpecification implements Serializable{

    //attributes
	private String name;
	private long length;
	private byte[] hash;
	private long offset;

	//constructor
	public CapsuleSpecification(String name, long length){
		this.name = name;
		this.length = length;
	}
	
	
	public CapsuleSpecification(String name, long length, long offset){
		this.name = name;
		this.length = length;
		this.offset = offset;
	}
	
	
	public CapsuleSpecification(String name, long length, byte [] hash){
		this.name = name;
		this.length = length;
		this.hash = hash;
	}

	
	public CapsuleSpecification(String name, long length, byte [] hash, long offset){
		this.name = name;
		this.length = length;
		this.hash = hash;
		this.offset = offset;
	}

	//public
	public String getName(){
		return name;
	}

	
	public long getLength(){
		return length;
	}

	
	public long getOffset(){
		return offset;
	}

	
	public byte[] getHash(){
		return hash;
	}
	
	
}